package com.rui.cn.entity.system;

import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableName;

import java.io.Serializable;

/**
 * <p>
 * 请求日志
 * </p>
 *
 * @author zhang123
 * @since 2018-01-20
 */
@TableName("sys_log")
public class SysLog extends Model<SysLog> implements Serializable{

    private static final long serialVersionUID = 1L;

    private Integer id;
    /**
     * ip
     */
    @TableField("client_Ip")
    private String clientIp;
    /**
     * 地址
     */
    private String uri;
    /**
     * 请求类型
     */
    private String type;
    /**
     * 请求方式
     */
    private String method;
    /**
     * sessionid
     */
    @TableField("session_id")
    private String sessionId;
    /**
     * 请求内容
     */
    @TableField("param_data")
    private String paramData;
    /**
     * 请求时间
     */
    private String time;
    /**
     * 返回时间
     */
    @TableField("return_time")
    private String returnTime;
    /**
     * 返回内容
     */
    @TableField("return_data")
    private String returnData;
    /**
     * 返回状态码
     */
    @TableField("http_status_code")
    private String httpStatusCode;
    /**
     * 请求耗时
     */
    @TableField("time_consuming")
    private Integer timeConsuming;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getClientIp() {
        return clientIp;
    }

    public void setClientIp(String clientIp) {
        this.clientIp = clientIp;
    }

    public String getUri() {
        return uri;
    }

    public void setUri(String uri) {
        this.uri = uri;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getMethod() {
        return method;
    }

    public void setMethod(String method) {
        this.method = method;
    }

    public String getSessionId() {
        return sessionId;
    }

    public void setSessionId(String sessionId) {
        this.sessionId = sessionId;
    }

    public String getParamData() {
        return paramData;
    }

    public void setParamData(String paramData) {
        this.paramData = paramData;
    }

    public String getTime() {
        return time;
    }

    public void setTime(String time) {
        this.time = time;
    }

    public String getReturnTime() {
        return returnTime;
    }

    public void setReturnTime(String returnTime) {
        this.returnTime = returnTime;
    }

    public String getReturnData() {
        return returnData;
    }

    public void setReturnData(String returnData) {
        this.returnData = returnData;
    }

    public String getHttpStatusCode() {
        return httpStatusCode;
    }

    public void setHttpStatusCode(String httpStatusCode) {
        this.httpStatusCode = httpStatusCode;
    }

    public Integer getTimeConsuming() {
        return timeConsuming;
    }

    public void setTimeConsuming(Integer timeConsuming) {
        this.timeConsuming = timeConsuming;
    }

    @Override
    protected Serializable pkVal() {
        return this.id;
    }
}
